home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
bkpfast.nnc
< prev
next >
Wrap
Text File
|
1993-08-23
|
3KB
|
72 lines
csv3.1 !file format is Control Strategy Version 3.1
! Dec-88 (bckfast.nnc) Fast Back Propagation Network
!************************************************************************
!* *
!* Fast Back Propagation Network Control Strategy *
!* Similar to backprop except that calculated error is *
!* added to output prior to delta weight calculation. *
!* Suggested by Tariq Samad of Honeywell SSDC, 1000 Boone Ave. N., *
!* Golden Valley, MN 55427. See abstract from INNS 1988 *
!* conference proceedings. *
!* *
!************************************************************************
!
!MASK label op-code operands comment
L_saR_sa trace aux3 ! set trace option to aux3
L_saR_sa optset op:bknc ! back prop to Input PEs
Li_aR_sa cset recall,1 ! recall count
!
! Get input (learn and recall) and desired output (learn only)
!
L_saR_sa lset in ! input layer
L___R_sa io read ! get input data (recall)
L_saR___ io lrnin ! get input data (learn)
!
! Start with the first layer for a forward pass through network
!
L_saR_sa lset in ! input layer
! Do summation separately to allow projective layers, and recurrence
L_saR_sa @rloop math sum|fire
L___R_sa math rnoise|tran|output|e=0
L_saR___ math lnoise|tran|output|e=0|fire
L_saR_sa lset cur,1 ! next layer
L_saR_sa lcmp out ! at output layer ?
L_saR_sa blt @rloop ! loop till done
!
! We are now at the output layer.
!
! Compute final outputs
L___R_sa math sum|rnoise|tran|output|fire
L___R_sa io write
L_saR___ math sum|lnoise|tran|output|fire
L_saR___ io lrnrslt
!
! Get desired output and compute error
L___R_sa io rcltst ! get desired output (test)
L___R_sa math e-=w
L___R_sa math ce=e ! current error for instruments
L_saR___ io lrnout ! get desired output (learn)
L_saR___ math e-=w|e*=ef|fire
!
! Learn cycle - back propagate error. Store unscaled error in
! current error field.
! Modify output of processing elements with error
!
L_saR___ math ce=e|e*=f'|backp|fire ! process output layer
L_saR___ br @skip ! skip regression
L_saR___ @loopa math ce=e|e*=f'|backp|fire ! scale error & back prop
L_saR___ math regress|fire ! add error to tran
L_saR___ math output|fire ! update output
L_saR___ @skip lset cur,-1 ! previous layer
L_saR___ lcmp in ! at input layer ?
L_saR___ bgt @loopa ! loop till done
L_saR___ lset out ! set output layer
!
! Update weights with "corrected" outputs
!
L_saR___ @loopb math learn|fire ! learn based on updated outputs
L_saR___ lset cur,-1 ! previous layer
L_saR___ lcmp in ! at input layer ?
L_saR___ bgt @loopb ! loop till done
LisaRisa trace 0 ! turn off any trace function